﻿using System;
using System.Collections.Generic;
using NTTDATA.BEENChina.ResultCertification.DataStore;

namespace NTTDATA.BEENChina.ResultCertification.model
{
    public class CheckSetting
    {
        public DateTime BeginDeliveryTime
        {
            get;
            set;
        }

        public DateTime EndDeliveryTime
        {
            get;
            set;
        }

        public DateTime RunTime
        {
            get;
            set;
        }

        //执行标记
        public int RunFlag { get; set; }

        public string ID { get; set; }


        /// <summary>
        /// 本次需要验证的categorys
        /// </summary>
        public List<string> VerifyCategorys
        {
            get
            {
                if (verfityCategorys ==null || verfityCategorys.Count==0)
                    verfityCategorys =  new VerfityAccess().GetVerfityCategorys();

                return verfityCategorys;
            }
            set
            {
                verfityCategorys = value;
            }
             
        }

        private List<string> verfityCategorys = null ; 

        public List<VerfityItem> VerifyList
        {
            get
            {
                if (items == null)
                    items = (new VerfityAccess()).GetVerfityItems();
                return items;
            }
            set
            {
                items = value;
            }
        }private List<VerfityItem> items = null;
    }
}